package vcp.models;


import vcp.common.AbstractModel;
import client.Message;
import control.SimpleClient;
import db.parking.beans.Orders;

/**
 * Orders Occasional OrderModel
 */
public class OrdersOccasionalOrderModel  extends AbstractModel{
	
	/**
	 * Occasional order request
	 * @param bean
	 */
	public void createOccasionalOrder(Orders bean) {	
		
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);
		
		Message msg = new Message(bean,"AddOccasionalOrder");
		 try {
				client.sendToServer(msg);
				
		 }
		 catch (Exception ex)
		    {
			 System.out.println(ex.toString()+" OrderControl->InsertOcassional");
		    }
		 
		
	}
	

}
